import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Register from '@/components/Register'
import Home from '@/components/Home'
import Detail from '@/components/Detail'
import Like from '@/components/Like'
import Admin from '@/components/Admin'
import Add from '@/components/Add'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail,
      props: true
    },
    {
      path: '/like',
      name: 'Like',
      component: Like,
      props: true
    },
    {
      path: '/admin',
      name: 'Admin',
      component: Admin,
      props: true
    },
    {
      path: '/add',
      name: 'Add',
      component: Add,
      props: true
    }
  ]
})
